<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>老师管理-网校管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<script>
	$(function(){
		$("#btn_save").click(function(){
			$("form").submit();
		});
	})
	</script>
</head>
<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html"}>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
			<div class="sub-colum">
				<div class="tit">教务管理</div>
				<ul>
					<li><a href="/classes">作业管理</a></li>
					<li><a href="/classes">班级管理</a></li>
					<li><a href="/student">学员管理</a></li>
					<li class="curr"><a href="/teacher">老师管理</a></li>
					<li><a href="/offline_course/cate">课程分类</a></li>
					<li><a href="/offline_course">课程设置</a></li>
					<li><a href="/school/room">教室管理</a></li>
					<li><a href="/school/campus">校区管理</a></li>
				</ul>
			</div>
			<!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
			    <!--star conter-->
			    <div class="cetContent">
						<div class="tit p-lr20">
						    <a class="c-40d064" href="/teacher">老师管理</a><em class="p-lr10 c-CCCCCC fs12">/</em><em>添加老师</em>
						</div>
					<!--star内容区域-->
					<div class="mainScroll">
    <div class="mainContainer line-all">
        <!--star tabMainCont-->
        <div class="line-all p20">

<form class="layui-form layui-form-pane" method="post" action="/role/save" id="form_add_role">
	<input type="hidden" value="<{$role_info.teacher_id|default:"0"}>" name="id" />
	<input type="hidden" value="<{$teacher_info.id|default:"0"}>" name="teacher_id" />
	<div class="layui-form-item">
		<label class="layui-form-label">老师名字</label>
		<div class="layui-input-block">
            <input type="text" class="layui-input" disabled="disabled" name="role_name" lay-verify="required" value="<{$teacher_info.teacher_name|default:""}>" >
		</div>
	</div>

	
	      		<{foreach from=$privilege_list item=item key=key}>
	      		<fieldset class="layui-elem-field" style="padding-top:20px;">
  					<legend><{$item->menu_title}>权限</legend>
	        		<div class="layui-inline">
				  		<div style="width:100%; float:left; padding-bottom:18px;">
					  		<div class="layui-input-block">
						  	<input class="check_all" type="checkbox" title="全选">
						  	<{foreach from=$item->sub item=sub_item key=sub_key}>
							<input type="checkbox" id="inlineCheckboxSub<{$sub_key}>" title="<{$sub_item->menu_title}>" name="role_privilege[]" <{if isset($role_info.role_privilege) AND $sub_item->menu_url|in_array:$role_info.role_privilege}>checked=""<{/if}> value="<{$sub_item->menu_url}>"">
						  	<{/foreach}>
						  	</div>
					  	</div>
				  	</div>
				</fieldset>
			  	<{/foreach}>
	        
	

	<div class="layui-input-block">
  		<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
		<button type="reset" class="layui-btn layui-btn-primary">重置</button>
	</div>
</form>

</div>
					            <!--end 编辑基本信息-->

					        </div>


					    </div>